package com.fnfn.sdk.api;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;

@Configuration
@PropertySource({ "classpath:config.properties" })
public class LocalConfig {

    @Value("${usernames}")
    private String usernames;

    @Value("${password}")
    private String password;

    @Value("${database}")
    private String database;

    @Value("${system_backup}")
    private String system_backup;

    public String getUsernames() {
        return usernames;
    }

    public String getPassword() {
        return password;
    }

    public String getDatabase() {
        return database;
    }

    public String getSystem_backup() {
        return system_backup;
    }

    @Bean
    public static PropertySourcesPlaceholderConfigurer propertyConfigure() {
        return new PropertySourcesPlaceholderConfigurer();
    }
}
